Small Website to play Web-based games.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. import type { NextPage } from 'next'
  2. import {GetServerSideProps} from 'next';
  3. const GameLandingPage: NextPage = () => null
  4. export const getServerSideProps: GetServerSideProps = async (ctx) => {
  5. return {
  6. redirect: {
  7. destination: `/games/${ctx.query.id}/play`,
  8. permanent: false,
  9. },
  10. };
  11. }
  12. export default GameLandingPage